package com.mf.config;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.util.List;

/**
 * @Author: lmf
 * @Create: 2024/9/15 15:34
 * Description:  基础配置参数
 */
public class BasicKey {

    public static  int MIN_DAY = 480;

    /**
     * 获取最小年
     * @param dateString 日期字符串
     */
    public static int getMinYear(String dateString) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
        LocalDate date = LocalDate.parse(dateString, formatter);
        return date.getYear();
    }


}
